<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CreditNotesList.aspx.vb" Inherits="MIMS_WRS.Web.CreditNotesList"%>
<%@ Register TagPrefix="uc1" TagName="HelpCtrl" Src="../Controls/HelpCtrl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="../Controls/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../Controls/Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>CreditNotesList</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="javascript" src="../Js/popcalendar.js"></script>
		<script language="javascript" src="../Js/common.js"></script>
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" src="../js/function.js" type="text/JavaScript"></script>
	</HEAD>
	<body leftMargin="0" topMargin="0" onload="MM_preloadImages('../images/b_weeklyreporto.gif','../images/b_historyreporto.gif','../images/b_usero.gif')"
		marginwidth="0" marginheight="0" MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<uc1:header id="Header1" runat="server"></uc1:header>
				<!-- Submenu: start -->
				<TBODY>
					<tr>
						<td>
							<table id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
								<tr>
									<td height="30" align="center" class="bgsubmenu"><div class="nlink">
											<table width="96%" border="0" cellpadding="0" cellspacing="0">
												<tr>
													<td class="txtcolor2"><p><span class="txtsmall"><strong>You are here:</strong></span> <a href="../Customer/CustomerList.aspx">
																Customer List</a> / Credit notes list</p>
													</td>
													<td align="right" class="txtcolor2"><strong><A href="CreditNotes.aspx?UserId=<%=UserId%>" ?>Create 
																New Credit Notes</A></strong></td>
													<td align="right" nowrap class="txtcolor2" width="70" DESIGNTIMEURL="CreditNotes.aspx?UserId"><span class="plink"><a href="javascript:history.back()"><img src="../images/b_back.gif" width="57" height="16" hspace="2" vspace="0" border="0"></a></span></td>
												</tr>
											</table>
										</div>
									</td>
								</tr>
								<tr>
									<td class="bglinetop1" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
								</tr>
								<!-- Submenu: end -->
								<!-- DataTable : start -->
								<tr>
									<td height="350" align="center" valign="top" class="bgwhite">
										<table width="96%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td height="35" align="center">
													<table width="100%" border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td width="56%" height="25" valign="bottom">
																<span class="title"><strong><strong>CREDIT NOTES LIST</strong></strong></span></td>
															<td width="44%" align="right" valign="bottom"><span class="plink"><strong><span class="txtsmall"><a href="#">
																				<uc1:HelpCtrl id="HelpCtrl1" runat="server"></uc1:HelpCtrl></a></span></strong></span></td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td height="1" class="border"><img src="../images/1pxl.gif" width="1" height="1"></td>
														</tr>
														<tr>
															<td height="1" bgcolor="#ffffff" class="txtcolor1s"><img src="../images/1pxl.gif" width="1" height="1"></td>
														</tr>
														<tr>
															<td height="25" class="rowpage"><table width="100%" border="0" cellpadding="0" cellspacing="0">
																	<tr>
																		<td width="44%" height="25">
																			<span class="txtcolor1"></span>
																		</td>
																		<td width="56%" align="right">
																			<table border="0" cellpadding="2" cellspacing="0" class="txtcolor1">
																				<tr>
																					<td align="right" class="txtcolor1s">&nbsp;</td>
																				</tr>
																			</table>
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td align="center" valign="top">
													<table width="100%" border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td align="center" valign="top">
																<table width="100%" border="0" cellpadding="2" cellspacing="2" class="border1">
																	<tr>
																		<td align="center" bgcolor="#f9f9f9">
																			<TABLE width="100%" border="0" cellPadding="3" cellSpacing="0">
																				<TR class="bgmenu">
																					<TD width="100%" height="30"><strong>Customer: </strong><span class="txtcolor2"><strong>
																								<asp:Label id="lblUserName" runat="server"></asp:Label></strong></span></TD>
																				</TR>
																				<TR align="center">
																					<TD align="center">
																						<asp:datagrid id="dgCreditNotesList" runat="server" Width="100%" BorderColor="#BFD6FB" AutoGenerateColumns="False"
																							AllowSorting="True" BorderWidth="0px" CellPadding="3" CellSpacing="1" PageSize="20">
																							<ItemStyle HorizontalAlign="Center" CssClass="bgrow1" VerticalAlign="Middle"></ItemStyle>
																							<HeaderStyle HorizontalAlign="Center" CssClass="txtheader" VerticalAlign="Middle"></HeaderStyle>
																							<Columns>
																								<asp:TemplateColumn SortExpression="NUMBER" HeaderText="Number">
																									<HeaderStyle Width="17%"></HeaderStyle>
																									<ItemTemplate>
																										<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NUMBER") %>' NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.CN_ID_PK", "CreditNotes.aspx?Id={0}&UserId="+Me.UserID.ToString()) %>' ID="Hyperlink1" NAME="Hyperlink1">
																										</asp:HyperLink>
																									</ItemTemplate>
																								</asp:TemplateColumn>
																								<asp:TemplateColumn SortExpression="CREATED_DATE" HeaderText="Date">
																									<HeaderStyle Width="14%"></HeaderStyle>
																									<ItemTemplate>
																										<asp:Label runat="server" Text='<%# MIMS_WRS.Business.Common.FormatDate(DataBinder.Eval(Container, "DataItem.CREATED_DATE")) %>' ID="Label1">
																										</asp:Label>
																									</ItemTemplate>
																								</asp:TemplateColumn>
																								<asp:BoundColumn DataField="SUPPLIER_CODE" SortExpression="SUPPLIER_CODE_ID_FK" HeaderText="Supplier for each Credit Notes number">
																									<HeaderStyle Width="22%"></HeaderStyle>
																								</asp:BoundColumn>
																								<asp:BoundColumn DataField="DESCRIPTION" SortExpression="DESCRIPTION" HeaderText="Description">
																									<HeaderStyle Width="29%"></HeaderStyle>
																								</asp:BoundColumn>
																								<asp:TemplateColumn SortExpression="VALUE_" HeaderText="Value (USD)">
																									<HeaderStyle Width="11%"></HeaderStyle>
																									<ItemTemplate>
																										<asp:Label runat="server" Text='<%# FormatNumber(DataBinder.Eval(Container, "DataItem.VALUE_"),2) %>' ID="Label2">
																										</asp:Label>
																									</ItemTemplate>
																								</asp:TemplateColumn>
																								<asp:TemplateColumn HeaderText="Remove">
																									<HeaderStyle Width="7%"></HeaderStyle>
																									<ItemTemplate>
																										<a href="#" onClick="if(!confirmMsg('remove', 'this note', 'removeCNID', this)) return false;" name='<%# DataBinder.Eval(Container, "DataItem.CN_ID_PK") %>' runat="server"
																	id="href1" onserverclick="RemoveCN_Command"><img src="../images/ic_del.gif" width="13" height="12" border="0"></a>
																									</ItemTemplate>
																								</asp:TemplateColumn>
																							</Columns>
																						</asp:datagrid>
																					</TD>
																				</TR>
																			</TABLE>
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td height="1" bgcolor="#ffffff" class="txtcolor1s"><img src="../images/1pxl.gif" width="1" height="1"></td>
														</tr>
														<tr>
															<td height="25" class="rowpage"><table width="100%" border="0" cellpadding="0" cellspacing="0">
																	<tr>
																		<td width="44%" height="25">
																			<span class="txtcolor1"></span><span class="txtsmall"><strong>TOTAL: </strong></span>
																			<span class="txthighlight"><strong>
																					<asp:label id="lblTotalNumber" runat="server"></asp:label></strong></span><span class="txtsmall"><strong>
																					ITEM(S)</strong></span><span class="txtcolor1"> </span>
																		</td>
																		<td width="56%" align="right">
																			<table border="0" cellpadding="2" cellspacing="0" class="txtcolor1">
																				<tr>
																					<td align="right" class="txtcolor1s">&nbsp;</td>
																				</tr>
																			</table>
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
														<tr>
															<td height="1" class="border"><img src="../images/1pxl.gif" width="1" height="1"></td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td align="center" valign="top">&nbsp;</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<uc1:footer id="Footer1" runat="server"></uc1:footer>
					<input id="removeCNID" type="hidden" runat="server" NAME="removeUserID">
				</TBODY>
			</table>
		</form>
	</body>
</HTML>
